//package cn.chengpengper.seckill.common.event.publisher.cola;
//
//import cn.chengpengper.seckill.common.event.SeckillBaseEvent;
//import cn.chengpengper.seckill.common.event.publisher.EventPublisher;
//import com.alibaba.cola.event.EventBusI;
//import lombok.RequiredArgsConstructor;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.stereotype.Component;
//
///**
// * @author chengpeng.hu
// */
//@Component
//@RequiredArgsConstructor
//@ConditionalOnProperty(name = "event.publish.type", havingValue = "cola")
//public class LocalDomainEventPublisher implements EventPublisher {
//
//    private final EventBusI eventBus;
//
//    @Override
//    public void publish(SeckillBaseEvent domainEvent) {
//        eventBus.fire(domainEvent);
//    }
//}
